import request from '@/utils/request';


export async function query({...resetParams}) {
  return request(`/admin/qrcodes`,{
    method:'GET',
    params:{
      ...resetParams,
      project_id:resetParams.bank_id?resetParams.bank_id.key:'',
      bank_id:'',
    }
  });
}
export async function remove({id,type}) {
  console.log('type',type)
  return request(`/admin/qrcodes/${id}`, {
    method: 'DELETE',
    params:{
      type:type
    }
  });
}


export async function edit({id,...restParams}) {
  return request(`/admin/qrcodes/${id}`, {
    method: 'PATCH',
    data: {
      ...restParams,
    },
  });
}

